@extends('mbcore.baseadmin::layout.iframe')
@section('title', $subtitle)

@section('content')
    <style>
        .radio label{width:60px;}

        div{
            width:100%;
        }
        .radio label{
            width:60px;
        }
        .required_field{
            color:red;
        }
    </style>
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">

                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>{{ $subtitle }}</h5>
                    </div>
                    <div class="ibox-content">
                        {{--<form  class="form-horizontal" action="{{route('admin.platform.manager.add')}}" method="post">--}}
                        {!! Form::open(['enctype'=>'multipart/form-data','class'=>'form-horizontal']) !!}

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label required_field">
                                <span style="color:red;">*</span>
                                类型名称
                            </label>
                            <div class="col-sm-10">
                                <label>
                                    <input type="text" class="form-control" name="name"  value="{{ old('name', '') }}" required aria-required="true" placeholder="请输入名称">
                                </label>
                            </div>
                        </div>


                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
{{--                                <span style="color:red;">*</span>--}}
                                排序
                            </label>
                            <div class="col-sm-10">
                                <label>
                                    <input type="text" class="form-control" name="sort"  value="{{ old('sort',1) }}"  placeholder="请输入排序" step="1" min="0">
                                </label>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
{{--                                <span style="color:red; ">*</span>--}}
                                状态
                            </label>
                            <div class="col-sm-10">
                                <div class="radio">
                                    <label>
                                        <input value="1"  name="status" type="radio" checked="" >{{getStatusArray()[1]}}</label>
                                    <label>
                                        <input value="2"  name="status" type="radio">{{getStatusArray()[2]}}</label>
                                </div>
                            </div>
                        </div>

                        @include('common.alert_error')

                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">保存内容</button>
                            </div>
                        </div>
                        {{ csrf_field() }}
{{--                        <input type="hidden"  name="roles" value="center">--}}
                        {!! Form::close() !!}
                    </div>
                </div>
            </div>
        </div>
    </div>
@stop

@push('startcss')
    <link href="{{ config('mbcore_baseadmin.baseadmin_assets_path')}}/css/plugins/webuploader/webuploader.css"
          rel="stylesheet">
@endpush
@section('myscript')
{{--    <script src="{{ config('mbcore_baseadmin.baseadmin_assets_path')}}/js/jquery.min.js"></script>--}}
    <script src="{{ config('mbcore_baseadmin.baseadmin_assets_path')}}/js/plugins/layer/laydate/laydate.js"></script>
    <script src="{{ config('mbcore_baseadmin.baseadmin_assets_path')}}/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="{{ config('mbcore_baseadmin.baseadmin_assets_path')}}/js/plugins/validate/messages_zh.min.js"></script>
    @include('common.success_prompt_js',$params);
@stop
